import Layout from "@/layout/index.vue";
import * as i18n from "@/utils";
let machine = {
  path: "/machine",
  component: Layout,
  name: "设备管理",
  meta: {
    title: i18n.t("router.manag"),
    icon: "dashboard"
  },
  isPermiss: "/management/machine",
  children: [
    {
      path: "/machine/info",
      component: () => import("@/views/machine/info/index.vue"),
      name: "设备列表",
      meta: { title: i18n.t("account.account.machineList") },
      isPermiss: "/management/machine.machine/getList?status=1"
    },
    {
      hidden: true,
      path: "/machine/info/add_info",
      component: () => import("@/views/machine/info/add_info/index.vue"),
      name: "添加设备",
      meta: { title: i18n.t("machine.add"), induce: "/machine/info" },
      isPermiss: "/management/machine.machine/add"
    },
    {
      hidden: true,
      path: "/machine/info/details_info",
      component: () => import("@/views/machine/info/details_info/index.vue"),
      name: "设备详情",
      meta: { title: i18n.t("machine.details"), induce: "/machine/info" },
      isPermiss: "/management/machine.machine/getFind"
    },
    {
      path: "/machine/llocation",
      component: () => import("@/views/machine/llocation/index.vue"),
      name: "设备配置",
      meta: { title: i18n.t("machine.config") },
      isPermiss: "/management/common/checkPwd"
    },
    {
      path: "/machine/marketing",
      component: () => import("@/views/machine/marketing/index.vue"),
      name: "营销配置",
      meta: { title: i18n.t("router.marketing") },
      isPermiss: "/management/machine.machine_config/getFind"
    },
    {
      path: "/machine/trade",
      component: () => import("@/views/machine/trade/index.vue"),
      name: "营业配置",
      meta: { title: i18n.t("machine.trade.businessConfig") },
      isPermiss: "/management/machine.machine_on_off/getList"
    },
    {
      hidden: true,
      path: "/machine/trade/add_info",
      component: () => import("@/views/machine/trade/add_info/index.vue"),
      name: "添加配置",
      meta: { title: i18n.t("machine.trade.add"), induce: "/machine/trade" },
      isPermiss: "/management/machine.machine_on_off/add"
    },
    {
      hidden: true,
      path: "/machine/trade/details_info",
      component: () => import("@/views/machine/trade/details_info/index.vue"),
      name: "修改配置",
      meta: { title: i18n.t("router.modifyConfig"), induce: "/machine/trade" },
      isPermiss: "/management/machine.machine_on_off/update"
    },
    {
      path: "/machine/type",
      component: () => import("@/views/machine/type/index.vue"),
      name: "设备分组",
      meta: { title: i18n.t("machine.group") },
      isPermiss: "/management/machine.machine_group/getList?status=1"
    },
    {
      hidden: true,
      path: "/machine/type/type_info",
      component: () => import("@/views/machine/type/type_info/index.vue"),
      name: "分组信息",
      meta: { title: i18n.t("router.groupInfo"), induce: "/machine/type" },
      isPermiss: "/management/machine.machine_group/add"
    },
    {
      path: "/machine/operations",
      component: () => import("@/views/machine/operations/index.vue"),
      name: "设备运维",
      meta: { title: i18n.t("machine.operation") },
      isPermiss: "/management/machine.machine/getList?status=2"
    },
    {
      hidden: true,
      path: "/machine/operations/details",
      component: () => import("@/views/machine/operations/details/index.vue"),
      name: "运维详情",
      meta: { title: i18n.t("router.operationsDetails") },
      isPermiss: "/management/machine.machine/getList"
    },
    {
      hidden: true,
      path: "/machine/online",
      component: () => import("@/views/machine/online/index.vue"),
      name: "运营报表",
      meta: { title: i18n.t("router.report") },
      isPermiss: "/management/machine.machine_online/getList"
    },
    {
      path: "/machine/custom",
      component: () => import("@/views/machine/custom/index.vue"),
      name: "高级自定义",
      meta: { title: i18n.t("router.custom") },
      isPermiss: "/management/machine.machine_advance/getGroupList"
    },
    {
      hidden: true,
      path: "/machine/custom/info/add_info",
      component: () => import("@/views/machine/custom/info/add_info/index.vue"),
      name: "发布计划",
      meta: {
        title: i18n.t("machine.custom.releasePlan"),
        induce: "/machine/custom/index"
      },
      isPermiss: "/management/machine.machine_advance/add"
    },
    {
      hidden: true,
      path: "/machine/custom/info/details_adv",
      component: () =>
        import("@/views/machine/custom/info/details_adv/index.vue"),
      name: "自定义详情",
      meta: {
        title: i18n.t("router.customDetails"),
        induce: "/machine/custom/index"
      },
      isPermiss: "/management/machine.machine_advance/getList"
    }
  ]
};

export default machine;
